package com.basics.service.impl;

import com.basics.mapper.IUserDao;
import com.basics.dto.CuxUsers;
import com.basics.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * 用户类serviceImpl
 *
 * @author shuaiwang02@hand-china.com
 */
@Service("userService")
public class UserServiceImpl implements IUserService {

    @Resource
    private IUserDao userDao;


    @Override
    public CuxUsers selectUser(String userName, String password) {
        return userDao.selectUser(userName, password);
    }

    @Override
    public CuxUsers selectUserInfomationById(Long userId) {
        return userDao.selectUserInfomationById(userId);
    }

    @Override
    public Integer updateInfomationByUserId(CuxUsers user) {
        return userDao.updateInfomationByUserId(user);
    }
}